import json 

class LoadJson:

	def __init__(self):
		print("载入机器人ID")

	def LoadRobotIDFourSpider(self,ids):
		jsonPath = './BwRobotConfig.json'
		with open(jsonPath,'r') as f:
			data = json.load(f)
		ids = data["FourSpiderRobot"]["ids"]
		return ids

	def LoadRobotIDSixSpider(self,ids):
		jsonPath = './BwRobotConfig.json'
		with open(jsonPath,'r') as f:
			data = json.load(f)
		ids = data["SixSpiderRobot"]["ids"]
		return ids



